package com.bitin.module.file.domain.entity;

import com.bitin.common.data.model.AbstractAuditModel;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.*;
import org.springframework.http.MediaType;

import java.io.File;

/**
 * @Author: Mr.Lu
 * @Datetime 2024/8/13 23:12
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table
public class Attachment extends AbstractAuditModel {
    /**
     * 附件的文件名
     */
    private String filename;
    /**
     * 原始文件名
     */
    private String originalFilename;
    /**
     * 附件的存储路径
     */
    private String url;
    /**
     * 附件的大小
     */
    private Long filesize;
    /**
     * 附件的类型
     */
    private String mediaType;
}
